home *** CD-ROM | disk | FTP | other *** search
/ Simple Backup / Simple Backup by STOMP.iso / SBU / ESM / data1.cab / dr_sumo-drrstesmnt5-product-nt-a / dr2000.cmd next >
OS/2 REXX Batch file  |  2001-07-25  |  3KB  |  113 lines

  1. @ECHO Off
  2.  
  3. REM ******************************************************************
  4. REM * 
  5. REM * Windows2000 Disaster Recovery Launch Process
  6. REM * 
  7. REM * This batch file is launched via a run once key in the registry.
  8. REM * Its purpose is to properly copy/install/launch our DR restore app.
  9. REM *
  10. REM ******************************************************************
  11.  
  12. cls
  13.  
  14. ECHO Bienvenido a Recuperación de desastres para Windows 2000.
  15. ECHO * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  16.  
  17. :BEGIN
  18.  
  19. if "%1" == "" (
  20.    goto :USAGE
  21.    ) else (
  22.    goto :STARTCOPY
  23.    )
  24. :USAGE
  25. ECHO Usage: %0 TARGET Where TARGET is the installation path.
  26. PAUSE
  27. goto :End
  28.  
  29. :ASKDISK5
  30. ECHO Inserte el Disco Nº %2 de instalación de Windows en la unidad A.
  31. PAUSE
  32.  
  33. :STARTCOPY
  34. IF NOT EXIST A:\FLOP105 GOTO ASKDISK5
  35.  
  36. IF NOT EXIST %1\System32\DR_TEMP\dr32.exe GOTO NO_DELETE_REQUIRED
  37.  
  38. del %1\System32\DR_TEMP\*.* /q
  39. del %1\System32\DR_TEMP\system\*.* /q
  40.  
  41. :NO_DELETE_REQUIRED
  42.  
  43. ECHO Copiando archivos de recuperación de desastres. Espere, por favor...
  44. xcopy A:\*.* %1\System32\DR_TEMP\system /e /h /i
  45. expand -r %1\System32\DR_TEMP\system\*.*_
  46. del %1\System32\DR_TEMP\system\*.*_
  47. del %1\System32\DR_TEMP\system\DR2000.cmd
  48.  
  49. :ASKDISK6
  50. ECHO Inserte el Disco Nº %3 de instalación de Windows en la unidad A.
  51. PAUSE
  52. IF NOT EXIST A:\FLOP106 GOTO ASKDISK6
  53.  
  54. ECHO Copiando archivos de recuperación de desastres. Espere, por favor...
  55. xcopy A:\*.* %1\System32\DR_TEMP\system /e /h /i
  56. expand -r %1\System32\DR_TEMP\system\*.*_
  57. del %1\System32\DR_TEMP\system\*.*_
  58.  
  59. REM Move the Restore.exe out of the system directory.
  60.  
  61. copy %1\System32\DR_TEMP\system\dr32.exe %1\System32\DR_TEMP\dr32.exe
  62.  
  63. REM Move the driver files to where they need to be.
  64.  
  65. copy %1\System32\DR_TEMP\system\DRVMCDB.SYS %1\System32\drivers\DRVMCDB.SYS
  66. copy %1\System32\DR_TEMP\system\DRVMCDB.INF %1\inf\DRVMCDB.INF
  67.  
  68. :: Copy the SEQTAPE.INF file if it exists
  69.  
  70. IF NOT EXIST %1\System32\DR_TEMP\system\seqtape.inf GOTO NO_SEQTAPE
  71.  
  72. COPY %1\System32\DR_TEMP\system\seqtape.inf %1\inf
  73.  
  74. :NO_SEQTAPE
  75.  
  76. REM Now call pnpninst.exe.
  77.  
  78. cd %1\System32\DR_TEMP\system\
  79. START /wait pnpninst.exe
  80.  
  81. REM Copy the shuttle driver stuff if it's there.
  82.  
  83. IF NOT EXIST %1\System32\DR_TEMP\system\epatap2k.sys GOTO NO_SHUTTLE_DRIVER
  84.  
  85. copy %1\System32\DR_TEMP\system\epatap2k.sys %1\System32\drivers 
  86. copy %1\System32\DR_TEMP\system\qic157.sys %1\System32\drivers
  87. copy %1\System32\DR_TEMP\system\epatap2k.inf %1\inf
  88. copy %1\System32\DR_TEMP\system\epatap2k.pnf %1\inf
  89. copy %1\System32\DR_TEMP\system\hptape2k.inf %1\inf 
  90. copy %1\System32\DR_TEMP\system\hptape2k.pnf %1\inf
  91.  
  92. :NO_SHUTTLE_DRIVER
  93.  
  94. REM Delete the junk stuff...
  95.  
  96. del %1\System32\DR_TEMP\system\dr32.exe
  97. del %1\System32\DR_TEMP\system\DR2000.cmd
  98. del %1\System32\DR_TEMP\system\FLOP105
  99. del %1\System32\DR_TEMP\system\FLOP106
  100.  
  101. cd %1\System32\DR_TEMP\system\
  102.  
  103. REM Install the shuttle driver.
  104.  
  105. IF EXIST %1\System32\DR_TEMP\system\epatap2k.sys START /wait Shuttle.exe
  106.  
  107. REM Turn on Auto logon
  108. START /WAIT DRINST.EXE -SETPATH
  109.  
  110. START Restart.exe
  111.  
  112. C:
  113.